package com.q.qq.service.impl;


import com.q.qq.dao.impl.UserDaoImpl;
import com.q.qq.entity.User;
import com.q.qq.mapper.UserMapper;
import com.q.qq.service.UserService;

public class UserServiceImpl implements UserService {
	private UserMapper userDao = new UserDaoImpl();
	@Override
	public User findByLoginNameAndPass(String loginname, String password) {
		return userDao.findByLoginNameAndPass(loginname,password);
	}
	@Override
	public User findByLoginName(String loginName) {
		return userDao.findByLoginName(loginName);
	}
	@Override
	public void save(User user) {
		userDao.save(user);
	}

}
